package com.imti.mall.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.mall.model.oms.pojo.OmsOrderReturnReason;
import com.imti.mall.model.oms.query.OmsOrderListParam;
import com.imti.mall.order.mapper.OrderReturnReasonMapper;
import com.imti.mall.order.service.OrderReturnReasonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class OrederReturnReasonServiceImpl extends ServiceImpl<OrderReturnReasonMapper,OmsOrderReturnReason> implements OrderReturnReasonService {

    @Resource
    OrderReturnReasonMapper returnReasonMapper;
    @Override
    public List<OmsOrderReturnReason> fetchReturnReasonList(OmsOrderListParam listParam) {
        return returnReasonMapper.fetchReturnReasonList(listParam);
    }

    @Override
    public Integer deleteReturnReason(Integer[] ids) {
        return returnReasonMapper.deleteReturnReason(ids);
    }

    @Override
    public Integer updateReasonStatus(Map<String,Object> map) {
        return returnReasonMapper.updateReasonStatus(map);
    }

    @Override
    public Integer addReturnReason(OmsOrderReturnReason returnReason) {
        return returnReasonMapper.addReturnReason(returnReason);
    }

    @Override
    public OmsOrderReturnReason getReasonDetail(Integer id) {
        return returnReasonMapper.getReasonDetail(id);
    }

    @Override
    public Integer updateReturnReason(OmsOrderReturnReason returnReason) {
        return returnReasonMapper.updateReturnReason(returnReason);
    }
}
